package com.cyt.sys.model.vo;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Id;
import java.util.Date;

/**
 * 基础部分-用户角色Vo类
 *
 * @author changzheng hou
 * @date 2019/4/2 14:24
 */
@Getter
@Setter
@NoArgsConstructor
public class SysUserRoleVo {
    /**
     * 主键
     */
    @Id
    private String id;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 角色id
     */
    private String roleId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 数据id集合
     */
    private String roleIds;

    public SysUserRoleVo(String userId, String roleId) {
        this.userId = userId;
        this.roleId = roleId;
    }

    public SysUserRoleVo(String userId, String roleId, String roleIds) {
        this.userId = userId;
        this.roleId = roleId;
        this.roleIds = roleIds;
    }
}